package com.cheng.example.atguigu.design_pattern.uml.chapter01;

/*
 * @author 程帅
 * @createTime: 2020/10/15 18:48
 * @Created: with IntelliJ IDEA.
 */
//普通人
public class Person {

    //买手机
    public CellPhone buyCellPhone(){
        return new CellPhone();
    }

    //买个手机玩游戏
    public void play(){
        CellPhone cellPhone = buyCellPhone();
        cellPhone.playGames();
    }
}